package com.smart.client.core.rule;

import lombok.extern.slf4j.Slf4j;

/**
 * Created By Li Jiaxi
 * <br/>Date: 2023/4/12 14:28
 * <br/>Description:
 */
@Slf4j
public abstract class AbstractRuleHandler<T> implements RuleHandler<T> {

    /**
     * 当前规则Bean后缀
     */
    public static final String RULE_HANDLER_SUFFIX = "RuleHandler";

    @Override
    public void handler(T t) {
        ruleVerify(t);
    }

    /**
     * 规则校验
     *
     * @param t 待处理数据
     */
    protected abstract void ruleVerify(T t);
}
